<?php
/* SVN FILE: $Id$ */
/* MgMenu Test cases generated on: 2009-06-05 11:06:03 : 1244220543*/
App::import('Model', 'MgMenu');

class MgMenuTestCase extends CakeTestCase {
	var $MgMenu = null;
	var $fixtures = array('app.mg_menu');

	function startTest() {
		$this->MgMenu =& ClassRegistry::init('MgMenu');
	}

	function testMgMenuInstance() {
		$this->assertTrue(is_a($this->MgMenu, 'MgMenu'));
	}

	function testMgMenuFind() {
		$this->MgMenu->recursive = -1;
		$results = $this->MgMenu->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('MgMenu' => array(
			'id'  => 1,
			'padre'  => 1,
			'orden'  => 1,
			'titulo'  => 'Lorem ipsum dolor ',
			'enlace'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2009-06-05',
			'modified'  => '2009-06-05',
			'adicionado_por'  => 'Lorem ipsum dolor ',
			'modificado_por'  => 'Lorem ipsum dolor '
			));
			$this->assertEqual($results, $expected);
	}
}
?>